{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8">
    <title>{% block title %}图书馆管理系统{% endblock %}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{% static 'catalog/css/style.css' %}">
  </head>

  <body>
    <nav class="main-nav">
      <a href="{% url 'index' %}">首页</a>
      <a href="{% url 'my-borrowed' %}">我的借阅</a>
      <a href="{% url 'authors' %}">作者列表</a>
      <a href="{% url 'books' %}">图书列表</a>
      <a href="{% url 'book-rank' %}">借阅排行榜</a>
      <a href="{% url 'account' %}">账号中心</a>
    </nav>
    <div class="container">
      {% if messages %}
        <ul class="messages">
          {% for message in messages %}
            <li class="{{ message.tags }}">{{ message }}</li>
          {% endfor %}
        </ul>
      {% endif %}
      {% block content %}{% endblock %}
    </div>
  </body>
</html>


